package com.example.attendancesystem.Models;

import lombok.Data;

@Data
public class News {
    private Integer id;  //id
    private String title; //标题
    private String author; //作者
    private String releaseTime; //发布时间
    private String imgPath; //消息图片
    private String content; //内容

    @Override
    public String toString() {
        return "News{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", author='" + author + '\'' +
                ", releaseTime='" + releaseTime + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", content='" + content + '\'' +
                '}';
    }

    public News() {
    }

    public News(Integer id, String title, String author, String releaseTime, String imgPath, String content) {
        this.id = id;
        this.title = title;
        this.author = author;
        this.releaseTime = releaseTime;
        this.imgPath = imgPath;
        this.content = content;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getReleaseTime() {
        return releaseTime;
    }

    public void setReleaseTime(String releaseTime) {
        this.releaseTime = releaseTime;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
